package org.mespilus.mespilusweb.ui.usermanagement.client.events;

import org.mespilus.mespilusweb.ui.usermanagement.client.model.FullMember;

import com.google.gwt.event.shared.GwtEvent;

public class AddMemberEvent extends GwtEvent<AddMemberHandler>{
	protected static final GwtEvent.Type<AddMemberHandler> TYPE = new Type<AddMemberHandler>();
	//Adding one Person
	protected FullMember member;
	
	public static GwtEvent.Type<AddMemberHandler> getTYPE() {
		return TYPE;
	}

	public FullMember getMember() {
		return member;
	}

	public void setMember(FullMember member) {
		this.member = member;
	}

	@Override
	protected void dispatch(AddMemberHandler handler) {
		handler.processAddMember(this);
	}

	@Override
	public Type<AddMemberHandler> getAssociatedType() {
		return TYPE;
	}

}
